#ifndef _ITEMMANAGER_H_
#define _ITEMMANAGER_H_

#include "Item.h"
#include "irrArray.h"

enum ItemType {
	ITEM_NONE = -1,
	ITEM_BALL1 = 0,
	ITEM_BALL2,
	ITEM_BALL3,
	ITEM_BALL4,
	ITEM_BALL5,
	ITEM_BALL6,
	ITEM_COUNT
};

class ItemManager
{
public:
	ItemManager();

	void initialize();
	void DrawAll();
	void UpdateAll();
	void SetCrtBalloon(int iball);
	void SaveData(CWriteFile* stream);
	void LoadData(CReadFile* stream);
private:
	array<Item*> m_items;
	//Balloon*	m_balloons[6];
	int m_lastBall;
	Balloon*	m_GameplayCrtBallon;
public:
	
	void ThrowBall(float cx,float cy, float ex, float ey);
	inline Balloon* GetCurrentBall(){return m_GameplayCrtBallon;}
	inline Item* GetItem(int iItem){return m_items[iItem];}


};

#endif // _ITEMMANAGER_H_
